UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

All GIDs referenced in the /etc/passwd file must be defined in the /etc/group file.


Overview

Finding ID Version Rule ID IA Controls Severity
V-781 GEN000380 SV-27069r1_rule ECSC-1 Low
Description
If a user is assigned the GID of a group not existing on the system, and a group with the same GID is subsequently created, the user may have unintended rights to the group.
STIG Date
Solaris 9 X86 Security Technical Implementation Guide 2014-01-08

Details

Check Text ( C-27986r1_chk )
Perform the following to ensure there are no GIDs referenced in /etc/passwd not defined in /etc/group.
# logins -o | awk -F: '$3 == ""'
If any lines are returned, there are GIDs referenced in /etc/passwd that are not defined in /etc/group, this is a finding.
Fix Text (F-33975r1_fix)
Add a group to the system for each GID referenced that does not have a corresponding group.

#/usr/sbin/groupadd < group >